const dev = require("./dev");
const project = require("./project");

const getContext = function() {
  if (process.env.NODE_ENV === "production") {
    return project.root;
  } else {
    return dev.proxy ? "" : dev.origin;
  }
};
module.exports = getContext();
